count = {}
str = input("请输入一个字符串:")
for char in str:
    count[char] = count.get(char, 0) + 1
print(count)